import {http} from "../utils/http"

export  interface myData{
  id: number,
  nickname:string,
  avatar:string
}

export  const getuserinfo=():Promise<myData>=>{
  return http.get<myData>('/auth/user/userInfo')
}
